<% presenter = ErrorPresenter.new(self) %>
<% content_for(:head) do %>
  <title>Pupilfirst | <%= t("errors.#{params[:error_type]}.title", default: 'Error') %></title>
<% end %>
<% content_for(:wrapper) do %>
  <%= yield %>
  <footer>
    <% if presenter.contact_email.present? %>
      <div class="container mx-auto px-4 text-center">
        <%= mail_to presenter.contact_email, t("views.footer.support"), class:'text-primary-500 hover:text-primary-600' %>
      </div>
    <% end %>
    <div class="container mx-auto p-4 text-center flex justify-center">
      <%= link_to ('/'), class:'text-primary-500 font-semibold text-xl' do %>
        <%= presenter.school_icon(:light) %>
        <%= presenter.school_icon(:dark) %>
      <% end %>
    </div>
  </footer>
<% end %>
<%= render template: 'layouts/application' %>
